<?php
namespace Models\Model;
class OrderDeliveryDetails
{
	public $order_delivery_details_id;
	public $admin_process_status;
	public $price;
	public $discount;	
	public $shop_id;
	public $user_medicine_order_id;
	public $user_order_status;
	public $shop_order_status;
	public $payment_status;
	public $delivered_date;
	public $date_updated;
	public function exchangeArray($data){
		$this->order_delivery_details_id       	= (isset($data['order_delivery_details_id']))  	? $data['order_delivery_details_id']	: null;
		$this->admin_process_status      		= (isset($data['admin_process_status']))   		? $data['admin_process_status']   		: null;		
		$this->price  	    					= (isset($data['price']))  						? $data['price']  : null;		
		$this->discount     					= (isset($data['discount']))					? $data['discount']	: null;		
		$this->shop_id       					= (isset($data['shop_id']))						? $data['shop_id']: null;
		$this->user_medicine_order_id     		= (isset($data['user_medicine_order_id'])) 		? $data['user_medicine_order_id']		: null;
		$this->user_order_status   				= (isset($data['user_order_status'])) 			? $data['user_order_status'] 			: null;
		$this->shop_order_status  				= (isset($data['shop_order_status'])) 			? $data['shop_order_status'] 			: null;
		$this->payment_status  					= (isset($data['payment_status'])) 				? $data['payment_status'] 				: null;
		$this->delivered_date  					= (isset($data['delivered_date'])) 				? $data['delivered_date'] 				: null;
		$this->date_updated  					= (isset($data['date_updated'])) 				? $data['date_updated'] 				: null;
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}